#ifndef CFILEINFO_H
#define CFILEINFO_H

#include <QObject>
#include <QVariant>
#include <QJSEngine>
#include <QJSValue>


struct FileInfo{
    QString fileName;
    int size;
    bool isFile;
};
Q_DECLARE_METATYPE(FileInfo)

class CFileInfo : public QObject
{
    Q_OBJECT
public:
    explicit CFileInfo(QObject *parent = nullptr);


    Q_INVOKABLE QJSValue get(const QJSValue &index) const;
signals:

};

#endif // CFILEINFO_H
